package com.qipay.sp.excutor.huifu;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.wanjia.WjAliNativeExcutor;
import com.qipay.sp.excutor.wanjia.WjAliWapExcutor;
import com.qipay.sp.excutor.wanjia.WjWxNativeExcutor;
import org.springframework.stereotype.Component;

//掌心付
@Component
public class HfFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(HfAliNativeExcutor.class);
    }
    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(HfAliWapExcutor.class);
    }


}
